<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- QCtmMultiComboBox.cpp -->
  <title>QCtmMultiComboBox Class | QCustomUi 1.10.0</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li><a href="index.html">QCustomUi 1.10.0</a></li>
<li><a href="index.html">QCustomUi</a></li>
<li>QCtmMultiComboBox</li>
<li id="buildversion">QCustomUi 1.10.0 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3 id="toc">Contents</h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#reimplemented-protected-functions">Reimplemented Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QCtmMultiComboBox Class</h1>
<!-- $$$QCtmMultiComboBox-brief -->
<p>可多选的ComboBox. <a href="#details">More...</a></p>
<!-- @@@QCtmMultiComboBox -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">  <span class="preprocessor">#include &lt;QCtmMultiComboBox.h&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="https://doc.qt.io/qt/qcombobox.html">QComboBox</a></td></tr></table></div>
<ul>
<li><a href="qctmmulticombobox-members.html">List of all members, including inherited members</a></li>
</ul>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qctmmulticombobox.html#QCtmMultiComboBox">QCtmMultiComboBox</a></b>(QWidget *<i>parent</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qctmmulticombobox.html#dtor.QCtmMultiComboBox">~QCtmMultiComboBox</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVariantList </td><td class="memItemRight bottomAlign"><b><a href="qctmmulticombobox.html#checkedDatas">checkedDatas</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="qctmmulticombobox.html#checkedItems">checkedItems</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qctmmulticombobox.html#isChecked">isChecked</a></b>(int <i>index</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAbstractItemModel *</td><td class="memItemRight bottomAlign"><b><a href="qctmmulticombobox.html#model">model</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmmulticombobox.html#setChecked">setChecked</a></b>(int <i>index</i>, bool <i>checked</i>)</td></tr>
</table></div>
<h2 id="reimplemented-protected-functions">Reimplemented Protected Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmmulticombobox.html#setModel">setModel</a></b>(QAbstractItemModel *<i>model</i>) override</td></tr>
</table></div>
<!-- $$$QCtmMultiComboBox-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p><b>截图:</b></p>
<p class="centerAlign"><img src="images/QCtmMultiComboBoxDetail.png" alt="" /></p></div>
<!-- @@@QCtmMultiComboBox -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QCtmMultiComboBox[overload1]$$$QCtmMultiComboBoxQWidget* -->
<h3 class="fn" id="QCtmMultiComboBox">QCtmMultiComboBox::<span class="name">QCtmMultiComboBox</span>(<span class="type"><a href="https://doc.qt.io/qt/qwidget.html#QWidget">QWidget</a></span> *<i>parent</i>)</h3>
<p>构造函数 <i>parent</i>.</p>
<!-- @@@QCtmMultiComboBox -->
<!-- $$$~QCtmMultiComboBox[overload1]$$$~QCtmMultiComboBox -->
<h3 class="fn" id="dtor.QCtmMultiComboBox"><code>[virtual] </code>QCtmMultiComboBox::<span class="name">~QCtmMultiComboBox</span>()</h3>
<p>析构函数.</p>
<!-- @@@~QCtmMultiComboBox -->
<!-- $$$checkedDatas[overload1]$$$checkedDatas -->
<h3 class="fn" id="checkedDatas"><span class="type">QVariantList</span> QCtmMultiComboBox::<span class="name">checkedDatas</span>() const</h3>
<p>返回被选中的项目数据.</p>
<p><b>See also </b><a href="qctmmulticombobox.html#checkedItems">checkedItems</a>() and <a href="qctmmulticombobox.html#setChecked">setChecked</a>.</p>
<!-- @@@checkedDatas -->
<!-- $$$checkedItems[overload1]$$$checkedItems -->
<h3 class="fn" id="checkedItems"><span class="type"><a href="https://doc.qt.io/qt/qstringlist.html">QStringList</a></span> QCtmMultiComboBox::<span class="name">checkedItems</span>() const</h3>
<p>返回被选中的项目.</p>
<p><b>See also </b><a href="qctmmulticombobox.html#checkedDatas">checkedDatas</a>() and <a href="qctmmulticombobox.html#setChecked">setChecked</a>.</p>
<!-- @@@checkedItems -->
<!-- $$$isChecked[overload1]$$$isCheckedint -->
<h3 class="fn" id="isChecked"><span class="type">bool</span> QCtmMultiComboBox::<span class="name">isChecked</span>(<span class="type">int</span> <i>index</i>) const</h3>
<p>返回第 <i>index</i> 项是否选中.</p>
<p><b>See also </b><a href="qctmmulticombobox.html#setChecked">setChecked</a>.</p>
<!-- @@@isChecked -->
<!-- $$$model[overload1]$$$model -->
<h3 class="fn" id="model"><span class="type"><a href="https://doc.qt.io/qt/qabstractitemmodel.html">QAbstractItemModel</a></span> *QCtmMultiComboBox::<span class="name">model</span>() const</h3>
<p>This is an overloaded function.</p>
<p>返回数据来源.</p>
<p><b>See also </b><a href="qctmmulticombobox.html#setModel">setModel</a>().</p>
<!-- @@@model -->
<!-- $$$setChecked[overload1]$$$setCheckedintbool -->
<h3 class="fn" id="setChecked"><span class="type">void</span> QCtmMultiComboBox::<span class="name">setChecked</span>(<span class="type">int</span> <i>index</i>, <span class="type">bool</span> <i>checked</i>)</h3>
<p>设置第 <i>index</i> 项是否选中 <i>checked</i>.</p>
<p><b>See also </b><a href="qctmmulticombobox.html#isChecked">isChecked</a>.</p>
<!-- @@@setChecked -->
<!-- $$$setModel[overload1]$$$setModelQAbstractItemModel* -->
<h3 class="fn" id="setModel"><code>[override virtual protected] </code><span class="type">void</span> QCtmMultiComboBox::<span class="name">setModel</span>(<span class="type"><a href="https://doc.qt.io/qt/qabstractitemmodel.html">QAbstractItemModel</a></span> *<i>model</i>)</h3>
<p>Reimplements: <a href="https://doc.qt.io/qt/qcombobox.html#setModel">QComboBox::setModel</a>(QAbstractItemModel *model).</p>
<p>This is an overloaded function.</p>
<p>设置数据来源 <i>model</i>.</p>
<p><b>See also </b><a href="qctmmulticombobox.html#model">model</a>().</p>
<!-- @@@setModel -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> QCustomUi
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/> </div>
</body>
</html>
